//package com.heima.common.tess4j;
//
//import net.sourceforge.tess4j.Tesseract;
//import net.sourceforge.tess4j.TesseractException;
//
//import java.awt.image.BufferedImage;
//import java.io.File;
//
//public class TestTess4j {
//    public static void main(String[] args) throws TesseractException {
//        Tesseract tesseract = new Tesseract();
//
//        tesseract.setDatapath();
//
//        tesseract.setLanguage();
//
//        File file = new File();
//        String result = tesseract.doOCR(file);
//        result.replaceAll("\\r|\n", "-").replaceAll(" ","");
//        System.out.println(result);
//    }
//}
